<!--
  -    Copyright (c) 2018-2025, hycloud All rights reserved.
  -
  - Redistribution and use in source and binary forms, with or without
  - modification, are permitted provided that the following conditions are met:
  -
  - Redistributions of source code must retain the above copyright notice,
  - this list of conditions and the following disclaimer.
  - Redistributions in binary form must reproduce the above copyright
  - notice, this list of conditions and the following disclaimer in the
  - documentation and/or other materials provided with the distribution.
  - Neither the name of the pig4cloud.com developer nor the names of its
  - contributors may be used to endorse or promote products derived from
  - this software without specific prior written permission.
  - Author: hycloud
  -->
<template>
    <div class="execution">
        <basic-container>
            <avue-crud ref="crud"
                       :page.sync="page"
                       :data="tableData"
                       :permission="permissionList"
                       :table-loading="tableLoading"
                       :option="tableOption"
                       @on-load="getList"
                       @search-change="searchChange"
                       @refresh-change="refreshChange"
                       @size-change="sizeChange"
                       @current-change="currentChange">
            </avue-crud>
        </basic-container>
    </div>
</template>

<script>
    import RenderForm from '@/components/table-design/newRender'
    import addView from '@/mixins/addView'
    import {mapGetters} from 'vuex'

    export default {
        components: { RenderForm},
        mixins: [addView],
        name: 'asset_allocationone_bill',
        data() {
            return {
                formObj: {
                    code: 'asset_allocationone_bill',
                    title: '',
                    flag: 'start',
                    bizData: {}
                },
                bizId: '',
                unitId: '',
                unitName: '',
                validityDate: '',
                option: {},
                option1: {},
                modal: false,
                modal1: false,
                modal2: false,
                modal3: false,
                searchForm: {},
                tableData: [{
                      title: '中层领导人事变动会议',
                      applicant: '小明',
                      ApplicationDepartment: '10:00-12:00',
                      contactInformation: '2023-09-15 10:00-12:00',
                      assetType: '001',
                      reason: '小王',
                      handledBy:'人事部',
                      position:'职员',
                      remark:''
                    }],
                page: {
                    total: 0, // 总页数
                    currentPage: 1, // 当前页数
                    pageSize: 20 // 每页显示多少条
                },
                tableLoading: false,
                tableOption: {
                    "border": true,
                    "addBtnText":"签到",
                    "index": true,
                    "indexLabel": "序号",
                    "stripe": true,
                    "menuAlign": "center",
                    "align": "center",
                    "dialogClickModal": false,
                    "searchMenuSpan": 6,
                    "column": [
                        {
                            "type": "input",
                            "label": "会议主题",
                            "prop": "title",
                            width: 250,
                            search: true,
                        },	 	 
                        {
                            "type": "input",
                            "label": "会议主持人",
                            "prop": "applicant",
                            searchLabelWidth: 150,
                            width: 150,
                            search: true,
                        },	
                        {
                            "type": "input",
                            "label": "会议地点",
                            "prop": "ApplicationDepartment",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },	
                        {
                            "type": "input",
                            "label": "会议时间",
                            "prop": "contactInformation",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },	
                        {
                            "type": "input",
                            "label": "参会人工号",
                            "prop": "assetType",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },	
                        {
                            "type": "input",
                            "label": "姓名",
                            "prop": "reason",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },
                        {
                            "type": "input",
                            "label": "部门",
                            "prop": "handledBy",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },
                        {
                            "type": "input",
                            "label": "职位",
                            "prop": "position",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        },
                        {
                            "type": "input",
                            "label": "备注",
                            "prop": "remark",
                            searchLabelWidth: 150,
                            width: 200,
                            search: true,
                        }]
                }
            }
        },
        computed: {
            ...mapGetters(['permissions', 'tagList']),
            permissionList() {
                return {
                    addBtn: true,
                    delBtn: true,
                    editBtn: true
                };
            }
        },
        methods: {
        }
    }
</script>


<style lang="scss">
    .el-radio {
    color: #000000;
}
</style>
